package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TbNewsgroup entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_newsgroup", catalog = "imcdbserver")
public class TbNewsgroup implements java.io.Serializable {

	// Fields

	private short ngpId;
	private String ngpName;
	private String ngpDescrible;
	private short ngpPid;
	private float ngpPosition;
	private short ngpLevel;

	// Constructors

	/** default constructor */
	public TbNewsgroup() {
	}

	/** full constructor */
	public TbNewsgroup(String ngpName, String ngpDescrible, short ngpPid,
			float ngpPosition, short ngpLevel) {
		this.ngpName = ngpName;
		this.ngpDescrible = ngpDescrible;
		this.ngpPid = ngpPid;
		this.ngpPosition = ngpPosition;
		this.ngpLevel = ngpLevel;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ngp_id", unique = true, nullable = false)
	public short getNgpId() {
		return this.ngpId;
	}

	public void setNgpId(short ngpId) {
		this.ngpId = ngpId;
	}

	@Column(name = "ngp_name", length = 40)
	public String getNgpName() {
		return this.ngpName;
	}

	public void setNgpName(String ngpName) {
		this.ngpName = ngpName;
	}

	@Column(name = "ngp_describle", length = 200)
	public String getNgpDescrible() {
		return this.ngpDescrible;
	}

	public void setNgpDescrible(String ngpDescrible) {
		this.ngpDescrible = ngpDescrible;
	}

	@Column(name = "ngp_pid")
	public short getNgpPid() {
		return this.ngpPid;
	}

	public void setNgpPid(short ngpPid) {
		this.ngpPid = ngpPid;
	}

	@Column(name = "ngp_position", precision = 12, scale = 0)
	public float getNgpPosition() {
		return this.ngpPosition;
	}

	public void setNgpPosition(float ngpPosition) {
		this.ngpPosition = ngpPosition;
	}

	@Column(name = "ngp_level")
	public short getNgpLevel() {
		return this.ngpLevel;
	}

	public void setNgpLevel(short ngpLevel) {
		this.ngpLevel = ngpLevel;
	}

}